package com.dmgis.hndz.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 市级预警临时表
 * @TableName ybba02c
 */
@TableName(value ="ybba02c")
@Data
public class Ybba02c implements Serializable {
    /**
     * ID号
     */
    @TableId(value = "ybba02c010")
    private String ybba02c010;

    /**
     * 预警标题
     */
    @TableField(value = "ybba02c020")
    private String ybba02c020;

    /**
     * 预警产品时间
     */
    @TableField(value = "ybba02c030")
    private LocalDateTime ybba02c030;

    /**
     * 预警区域
     */
    @TableField(value = "ybba02c040")
    private String ybba02c040;

    /**
     * 预警颜色
     */
    @TableField(value = "ybba02c050")
    private String ybba02c050;

    /**
     * 预警等级
     */
    @TableField(value = "ybba02c060")
    private String ybba02c060;

    /**
     * 预警所属县
     */
    @TableField(value = "ybba02c070")
    private String ybba02c070;

    /**
     * 行政编码
     */
    @TableField(value = "ybba02c090")
    private String ybba02c090;

    /**
     * 预警方位
     */
    @TableField(value = "ybba02c080")
    private Object ybba02c080;

    /**
     * 预警所属乡
     */
    @TableField(value = "ybba02c100")
    private String ybba02c100;

    /**
     * 文本信息
     */
    @TableField(value = "ybba02c110")
    private String ybba02c110;

    /**
     * 0：短临，1：短期，2：中短期
     */
    @TableField(value = "ybba02c120")
    private Integer ybba02c120;

    private Object ybba02c130;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Ybba02c other = (Ybba02c) that;
        return (this.getYbba02c010() == null ? other.getYbba02c010() == null : this.getYbba02c010().equals(other.getYbba02c010()))
            && (this.getYbba02c020() == null ? other.getYbba02c020() == null : this.getYbba02c020().equals(other.getYbba02c020()))
            && (this.getYbba02c030() == null ? other.getYbba02c030() == null : this.getYbba02c030().equals(other.getYbba02c030()))
            && (this.getYbba02c040() == null ? other.getYbba02c040() == null : this.getYbba02c040().equals(other.getYbba02c040()))
            && (this.getYbba02c050() == null ? other.getYbba02c050() == null : this.getYbba02c050().equals(other.getYbba02c050()))
            && (this.getYbba02c060() == null ? other.getYbba02c060() == null : this.getYbba02c060().equals(other.getYbba02c060()))
            && (this.getYbba02c070() == null ? other.getYbba02c070() == null : this.getYbba02c070().equals(other.getYbba02c070()))
            && (this.getYbba02c090() == null ? other.getYbba02c090() == null : this.getYbba02c090().equals(other.getYbba02c090()))
            && (this.getYbba02c080() == null ? other.getYbba02c080() == null : this.getYbba02c080().equals(other.getYbba02c080()))
            && (this.getYbba02c100() == null ? other.getYbba02c100() == null : this.getYbba02c100().equals(other.getYbba02c100()))
            && (this.getYbba02c110() == null ? other.getYbba02c110() == null : this.getYbba02c110().equals(other.getYbba02c110()))
            && (this.getYbba02c120() == null ? other.getYbba02c120() == null : this.getYbba02c120().equals(other.getYbba02c120()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getYbba02c010() == null) ? 0 : getYbba02c010().hashCode());
        result = prime * result + ((getYbba02c020() == null) ? 0 : getYbba02c020().hashCode());
        result = prime * result + ((getYbba02c030() == null) ? 0 : getYbba02c030().hashCode());
        result = prime * result + ((getYbba02c040() == null) ? 0 : getYbba02c040().hashCode());
        result = prime * result + ((getYbba02c050() == null) ? 0 : getYbba02c050().hashCode());
        result = prime * result + ((getYbba02c060() == null) ? 0 : getYbba02c060().hashCode());
        result = prime * result + ((getYbba02c070() == null) ? 0 : getYbba02c070().hashCode());
        result = prime * result + ((getYbba02c090() == null) ? 0 : getYbba02c090().hashCode());
        result = prime * result + ((getYbba02c080() == null) ? 0 : getYbba02c080().hashCode());
        result = prime * result + ((getYbba02c100() == null) ? 0 : getYbba02c100().hashCode());
        result = prime * result + ((getYbba02c110() == null) ? 0 : getYbba02c110().hashCode());
        result = prime * result + ((getYbba02c120() == null) ? 0 : getYbba02c120().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ybba02c010=").append(ybba02c010);
        sb.append(", ybba02c020=").append(ybba02c020);
        sb.append(", ybba02c030=").append(ybba02c030);
        sb.append(", ybba02c040=").append(ybba02c040);
        sb.append(", ybba02c050=").append(ybba02c050);
        sb.append(", ybba02c060=").append(ybba02c060);
        sb.append(", ybba02c070=").append(ybba02c070);
        sb.append(", ybba02c090=").append(ybba02c090);
        sb.append(", ybba02c080=").append(ybba02c080);
        sb.append(", ybba02c100=").append(ybba02c100);
        sb.append(", ybba02c110=").append(ybba02c110);
        sb.append(", ybba02c120=").append(ybba02c120);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
